<?
include_once "../../mode/lang/error.php";
include_once "../../mode/message/reply.php";
include_once "../../mode/message/blog.php";
include_once "../../mode/table/tbhelper.php";

$db = new db("mysql:host=localhost;dbname=sns","zyn","zyn");
//print_r(tbhelper::produce("dairy"));
$reply = new reply($db,tbhelper::produce("comment")); 
$data = array();
$data['con']="ceshi";
$data['uid']=20;
$data['rid']=3;
$replyAction = $reply->getAction(recourse::ADDNEW);
$replyAction->setData($data);
if($replyAction->checkData()){
	echo $replyAction->run();
	echo "OK";
}
else{
	echo "CheckDataError";
}
?>